<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>修改密码</title>
    <link rel="stylesheet" href="../resource/css/bootstrap.min.css" th:href="@{/resource/css/bootstrap.min.css}">
    <link href="../resource/hotui/css/font-awesome.min.css" th:href="@{/resource/hotui/css/font-awesome.min.css}"
          rel="stylesheet">
    <link href="../resource/hotui/css/animate.min.css" th:href="@{/resource/hotui/css/animate.min.css}"
          rel="stylesheet">
    <link href="../resource/hotui/css/style.min-1.0.8.css" th:href="@{/resource/hotui/css/style.min-1.0.8.css}"
          rel="stylesheet">
    <link href="../resource/hotui/css/login.min.css" th:href="@{/resource/hotui/css/login.min.css}" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改密码</h5>
                </div>
                <div class="ibox-content">
                    <form action="/modifypass" th:action="@{/modifypass}" method="post" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">当前账户：</label>
                            <div class="col-sm-8" style="display: inline-block;line-height: 33px;" th:text="${userName}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">当前密码：</label>

                            <div class="col-sm-8">
                                <input type="text" name="oldpass" placeholder="登录密码" required="required" class="form-control"> <span class="help-block m-b-none">请输入您当前登录密码</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">新密码：</label>

                            <div class="col-sm-8">
                                <input type="text" name="newpass" placeholder="新密码" required="required" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>修 改</strong>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script src="../resource/js/jquery.min2.2.4.js?v=2.1.4" th:src="@{/resource/js/jquery.min2.2.4.js?v=2.1.4}"></script>
<script src="../resource/hotui/js/hot/bootstrap.hot.extra-utils.js?20190316"
        th:src="@{/resource/hotui/js/hot/bootstrap.hot.extra-utils.js?20190316}"></script>
<script type="text/javascript" th:inline="javascript">
    var failedFlag = /*[[${failedFlag}]]*/ false;
    var errorMsg = /*[[${errMsg}]]*/ "";
    $(function () {
        if (failedFlag) {
            hot.tip.error(errorMsg);
        }
    });

</script>
</html>